@import "../common/color";

.banner-page {

  .common-edit-page {

    .ant-transfer-list-header-selected {
      span:nth-of-type(1) {
        display: none;
      }
    }
    .ant-input-number {
      width: 100px;
    }
    .ant-table {
      line-height: 20px;

      .ant-table-thead > tr > th {
        padding: 7px 10px;
      }
      .ant-table-tbody > tr > td {
        padding: 5px 10px;
      }

    }
    .required {
      &:before {
        content: '* ';
        color: @red;
        font-size: 11px;
      }
    }

    .upload-img-h {
      float: left;
      width: 242px;
      height: 136px;
      position: relative;
      background: url("../../images/banner/upload_placeholder_h.png") center no-repeat;
      background-size: contain;
      .img {
        position: relative;
        width: 242px;
        height: 136px;
        img {
          position: absolute;
          width: 242px;
          height: 136px;
          background: #fff;
        }
        i {
          display: block;
          position: absolute;
          left: 90px;
          top: 33px;
          width: 60px;
          height: 60px;
          background: url("../../images/banner/upload_add.png") center no-repeat;
          background-size: contain;
        }
      }
    }

    .upload-img-tip {
      float: left;
      padding: 10px 0 0 20px;
    }

    .preview-upload {
      margin-top: 15px;
      width: 383px;
      padding: 10px;
      border: 1px dashed @line-grey;
      border-radius: 6px;
      .top {
        width: 100%;
        display: -webkit-flex;
        -webkit-flex-flow: row;
        height: 20px;
        line-height: 20px;
        .title {
          -webkit-flex: 1;
          overflow: hidden;
        }
        .size {
          -webkit-flex: 0 0 80px;
          text-align: right;
        }
      }
    }

    .preview-video {
      margin-top: 15px;
      width: 383px;
      height: 222px;
      padding: 10px;
      border: 1px dashed #d9d9d9;
      border-radius: 6px;
      position: relative;
      .file {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 222px;
        filter: alpha(opacity=0);
        opacity: 0;
        background: none;
        border: none;
      }
      video {
        position: relative;
        width: 360px;
        height: 202px;
      }
    }

    .preview-audio {
      margin-top: 15px;
      width: 383px;
      min-height: 50px;
      padding: 10px;
      border: 1px dashed #d9d9d9;
      border-radius: 6px;
      position: relative;
      .file {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 30px;
        filter: alpha(opacity=0);
        opacity: 0;
        background: none;
        border: none;
      }
      video {
        position: relative;
        width: 360px;
        height: 30px;
      }
    }

    .channels-thumbs {
      text-align: left;
      color: @font-dark;
      .channels {
        width: 100%;
        padding-left: 10px;
        cursor: pointer;
        img {
          width: 30px;
          height: 30px;
          border-radius: 100%;
          float: left;
          margin-left: -10px;
        }
      }
    }

    .form {
      width: 100%;

      .line {
        position: relative;
        width: 100%;
        min-height: 45px;
        line-height: 30px;
        padding: 7px 10px;
        background: @bg-white;
        display: -webkit-flex;
        -webkit-flex-flow: row;
        margin-bottom: 1px;

        p {
          -webkit-flex: 0 0 85px;
          text-align: right;
          padding-right: 5px;
          margin: 0;
          &:after {
            content: '：';
          }
        }

        .input-wide {
          -webkit-flex: 1;
          height: 30px;
          line-height: 30px;
          padding: 0 3px;
          border: 1px solid @line-grey;
        }

        .input-narrow {
          float: left;
          width: 100px;
          height: 30px;
          line-height: 30px;
          padding: 0 3px;
          border: 1px solid @line-grey;
          border-radius: 4px;
          margin: 0 5px;
        }

        .txtcount {
          position: absolute;
          right: 8px;
          bottom: 8px;
          color: @font-light;
          font-size: 11px;
        }

        .txtcount_textarea {
          right: 15px;
          bottom: 5px;
        }

        span {
          float: left;
          font-size: 14px;
          color: @font-dark;
        }

        .flex-block {
          -webkit-flex: 1;
          text-align: right;
          color: @font-dark;
          font-size: 16px;
        }

        .wx-account {
          -webkit-flex: 1;
          height: 75px;
          padding: 15px;
          display: -webkit-flex;
          -webkit-flex-flow: row;
          border: 1px solid @line-grey;
          border-radius: 4px;
          .avatar {
            -webkit-flex: 0 0 45px;
            width: 45px;
            height: 45px;
            border-radius: 4px;
          }
          .nick {
            -webkit-flex: 1;
            height: 45px;
            line-height: 45px;
            padding-left: 15px;
            overflow: hidden;
          }
          a {
            -webkit-flex: 0 0 40px;
            text-align: right;
            line-height: 45px;
          }
        }

        .simgs {
          -webkit-flex: 1;
          img {
            float: left;
            width: 40px;
            height: 40px;
            margin: 0 3px;
            cursor: pointer;
          }
        }

        .txt_datepicker {
          width: 100%;
          z-index: 1;
          position: absolute;
          height: 50px;
          left: 0;
          padding-right: 30px;
          text-align: right;
          font-size: 14px;
        }

        .hiddeninput {
          -webkit-flex: 1;
          z-index: 2;
          height: 30px;
          opacity: 0;
          border: none;
          background: none;
        }

        .arrow {
          -webkit-flex: 0 0 20px;
          width: 10px;
          height: 17px;
          background: url("../../images/common/angle_right.png") center no-repeat;
          background-size: contain;
          margin-top: 7px;
          margin-left: 5px;
          -webkit-transition: all .4s;
        }
        .arrow_up {
          transform: rotate(90deg);
          -webkit-transform: rotate(90deg);
        }

        .textarea {
          width: 100%;
          height: 60px;
          line-height: 20px;
        }

        &:after {
          content: "";
          display: block;
          position: absolute;
          top: 100%;
          left: -50%;
          width: 200%;
          height: 1px;
          background: @line-grey;
          transform: scale(0.5);
          -webkit-transform: scale(0.5);
        }

        &:last-child {
          &:after {
            display: none;
          }
        }

      }

      .nosplit {
        margin-top: -10px;
        &:after {
          display: none;
        }
      }

      .split {
        width: 100%;
        height: 10px;
      }

      .btn_save {
        margin-top: 20px;
        width: 100px;
        line-height: 30px;
        text-align: center;
        color: #fff;
        background: @tcblue;
        position: relative;
        left: 50%;
        margin-left: -50px;
        border-radius: 5px;
        cursor: pointer;
      }

    }

    .no-bottomline {
      .line {
        &:after {
          display: none;
        }
      }
    }

    .channel-icon {
      width: 50px;
      height: 50px;
      border-radius: 100%;
      background: @font-light;
      img {
        max-width: 30px;
        max-height: 30px;
        margin: 10px 0 0 10px;
      }

    }

    .grids {
      width: 510px;
      height: 150px;
      overflow: scroll;
      ul {
        width: 100%;
        li {
          position: relative;
          float: left;
          width: 70px;
          height: 70px;
          padding: 10px;
        }

        .active {
          background: @bg-grey;
        }

        .split_v {
          float: left;
          position: relative;
          width: 0;
          height: 120px;
          &:after {
            content: "";
            display: block;
            position: absolute;
            left: 0;
            top: -50%;
            height: 200%;
            width: 1px;
            background: #D9D6D6;
            transform: scale(0.5);
            -webkit-transform: scale(0.5);
          }
        }
        .split_h {
          position: relative;
          width: 100%;
          height: 0;
          clear: both;
          &:after {
            content: "";
            display: block;
            position: absolute;
            top: 0;
            left: -50%;
            width: 200%;
            height: 1px;
            background: #D9D6D6;
            transform: scale(0.5);
            -webkit-transform: scale(0.5);
          }
        }
      }
    }

    .ant-transfer {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      flex-wrap: wrap;
    }
  }

  .banner-edit {
    margin-bottom: 20px;
    border-bottom: 1px dashed @line-grey;

    .upload-img-h {
      margin-left: -7px;
    }

    p {
      width: 100%;
      clear: both;
      text-align: left;
      padding-top: 10px;
    }

    .ant-select {
      margin: 10px 0;
    }

    .textarea {
      border: 1px solid @line-grey;
      border-radius: 8px;
      width: 360px;
      height: 50px;
      padding: 5px;
      line-height: 20px;
    }
  }

  .banners {
    li {
      float: left;
      width: 180px;
      padding: 5px 10px;
      .img {
        width: 160px;
        height: 90px;
        position: relative;
        i {
          z-index: 2;
          position: absolute;
          display: block;
          top: 0;
          right: 0;
          width: 20px;
          height: 20px;
          cursor: pointer;
          border-radius: 4px;
        }
        .close {
          background: @red url("../../images/common/btn_close_white.png") center no-repeat;
          background-size: 60%;
        }
        .edit {
          top: 20px;
          background: @tcblue url("../../images/common/icon_edit.png") center no-repeat;
          background-size: 70%;
        }
        img {
          position: absolute;
          left: 0;
          top: 0;
          width: 160px;
          height: 90px;
        }
      }
      p {
        width: 100%;
        margin-top: 5px;
      }
    }

  }
  .save {
    display: flex;
    justify-content: flex-end;
  }
}
